package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
import java.util.List;

public interface SetMealService {
    public void add(Integer[] checkgroupIds,Setmeal setmeal);

    public PageResult findPage(QueryPageBean queryPageBean);

    public Setmeal findById(Integer id);

    public List<Integer> findAssociationWithCheckGroupById(Integer id);

    public void edit(Integer[] checkgroupIds, Setmeal setmeal);

    public List<Setmeal> getSetmeal();

    public Setmeal findContentById(Integer id);

    /**
     * 查询每个套餐的订单数量
     * @return
     */
    public HashMap<String, Object> findOrderCount();
}
